package app1

import app1.feign.ServiceSet1Hystrix
import app1.restTemplate.ServiceSet1Proxy
import org.springframework.cloud.client.loadbalancer.LoadBalanced
import org.springframework.context.annotation.Bean
import org.springframework.web.client.RestTemplate

class AnnotationContextConfiguration {
    @Bean
    @LoadBalanced
    RestTemplate restTemplate() {
        return new RestTemplate()
    }

    @Bean
    ServiceSet1Hystrix serviceSet1Hystrix() {
        return new ServiceSet1Hystrix()
    }

    @Bean
    ServiceSet1Proxy serviceSet1Proxy() {
        return new ServiceSet1Proxy()
    }
}
